How to debug NAV Web Service (not RTC)?

vaxo_jj
Member Posts: 54
Hi everyone,
do you know if it is possible (if yes - how) to debug NAV Web Service? that is, I have c# application which calls codeunit 50xxx. I want to set breakpoints, step-into, in that codeunit and see what's happening there (wrong).
Or is there a possibility to see where in code system returned an error (like when NAV debugger is set to Active and you see a place in code where it stopped/encountered an error).
I know how to debug RTC, but this doesn't work with web service (to attach .cs file to a process).
thanks.
do you know if it is possible (if yes - how) to debug NAV Web Service? that is, I have c# application which calls codeunit 50xxx. I want to set breakpoints, step-into, in that codeunit and see what's happening there (wrong).
Or is there a possibility to see where in code system returned an error (like when NAV debugger is set to Active and you see a place in code where it stopped/encountered an error).
I know how to debug RTC, but this doesn't work with web service (to attach .cs file to a process).
thanks.
0
Comments
-
It is working in same way as debugging RTC. There is something wrong if not...0
-
Hi Kine. Thanks for replying.
I can't make it work. I have an application open in VS and .cs file of a codeunit which I want to debug. Which one I should attach to which process? I tried to attach .cs file to NAV server but then I cant run an application.
could you please write an example.
thanks.0 -
vaxo_jj wrote:Hi Kine. Thanks for replying.
I can't make it work. I have an application open in VS and .cs file of a codeunit which I want to debug. Which one I should attach to which process? I tried to attach .cs file to NAV server but then I cant run an application.
could you please write an example.
thanks.
Hi, as Kine mentioned, you can debug the same way that RTC.
I have a post with How To.
http://albertinonav.blogspot.com.es/201 ... .html#more
Regards.0 -
Open VS. Open the codeunit cs file, set breakpoint. Attach the debugger to Microsoft.Dynamics.NAV.Server.exe process of the server, to which you are connecting. Be sure,t hat you do not have more running NAV servers on your PC. If you have more, be sure, that you are connecting to the correct process by selecting the correct one by SPID (in Task Manager you can display Command Line for the processes and you can select the correct process than by looking from where it is started). The brakpoint should be full red circle and not empty one. After the function is called, it should stop there. Of course, the problem could be in CU 1 and than the process will not hit your breakpoint in your codeunit, because it will fail before reaching it (it is first creating the connection, thus running the code in CU 1).0
-
now it works
kine, JAJ thanks a lot.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions