Skip to Content
author's profile photo
Former Member

Debugging in .NET

Is there any way to have more sophisticated debugging for a SAP add-on? In particular, when my code GPFs on a particular line of code the error is not raised in SAP. The Display Debug Information menu item does not help in most scenarios.

Is there a way to setup a .NET solution to run SAP and use the .NET debugger? Is there another way to debug in SAP other than popping up message boxes?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Aug 16, 2004 at 06:31 PM

    Catherine,

    You might try attaching the debugger directly to the process. In Visual Studio 2003, you can do this from the Tools Menu:

    1 Select 'Debug Processes' with your addon running.

    2. You should be given a list of processes running on your machine. Highlight your addon process and click 'Attach'.

    3. You should be given a list of debugging options. Select 'Common Language Runtime' to enable .NET-specific debugging.

    If you use a debug version of your addon and include the debug file (.pdb) in the execution directory, you should even be able to use breakpoints, watches, etc.

    Corbin

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Marisi,

      You are thanking a poster for his answer.

      Please next time also give him points.

      See: /people/mark.finnern/blog/2004/08/10/spread-the-love

      This time I did it for you.

      Remember: When you ask a question you also assume the responsibility to assign points.

      Please check your other questions and if the answers were good.

      Spread the love and give some points.

      Thanks in advance, Mark.