cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging in .NET

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Corbin.

I have not used this feature in .NET before. This will be a life saver to me.

former_member374
Active Contributor
0 Kudos

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.

Answers (0)