How to debug Codeunit 1 ?

KKrause
KKrause Member Posts: 3
Hi all,

we have a problem with codeunit 1 (one), the login/logout codeunit of NAV.

The problem is that you can only start the debugger AFTER having logged in.

Do you know any startup parameter for NAV (Version 5.0 at this customer), which allows to start in the debug mode right away?

The required analysis is to complex to enter "Message" commands into the source code.

Or do you have any other idea?

Kind regards

K.
Knut Nicholas Krause
knk Business Software AG

Comments

  • garak
    garak Member Posts: 3,263
    mhm, for me i can debug the CU 1.

    Open NAV. Close the Database (File -> Database -> Close).
    Go to Tools (Extras) -> Debugger -> Active.
    Now connect to the Database (File -> Database -> open.

    The debugger will start (after entering USERID) and wait on function CompanyOpen() (or on function with the ID 1 if ther is one).

    Regards
    Do you make it right, it works too!
  • KKrause
    KKrause Member Posts: 3
    Obviously, we better should go to bed. We thought much to complicated.

    You are right and this works...

    sorry to bother you.
    Knut Nicholas Krause
    knk Business Software AG
  • garak
    garak Member Posts: 3,263
    You're welcome and good night ;-)
    Do you make it right, it works too!