mibuso.com

Microsoft Business Solutions online community
It is currently Tue Sep 30, 2014 9:53 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to debug NAV Web Service (not RTC)?
PostPosted: Wed May 09, 2012 6:57 pm 
Offline

Joined: Sun Apr 15, 2007 9:09 am
Posts: 48
Location: Olomouc
Country: Czech Republic (cz)
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.


Top
 Profile  
 
 Post subject: Re: How to debug NAV Web Service (not RTC)?
PostPosted: Wed May 09, 2012 9:10 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2014 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12441
Location: Brno
Country: Czech Republic (cz)
It is working in same way as debugging RTC. There is something wrong if not...

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject: Re: How to debug NAV Web Service (not RTC)?
PostPosted: Thu May 10, 2012 9:19 am 
Offline

Joined: Sun Apr 15, 2007 9:09 am
Posts: 48
Location: Olomouc
Country: Czech Republic (cz)
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.


Top
 Profile  
 
 Post subject: Re: How to debug NAV Web Service (not RTC)?
PostPosted: Thu May 10, 2012 10:22 am 
Offline

Joined: Fri Jan 30, 2009 3:19 pm
Posts: 41
Location: Donostia
Country: Spain (es)
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.


Top
 Profile E-mail WWW  
 
 Post subject: Re: How to debug NAV Web Service (not RTC)?
PostPosted: Thu May 10, 2012 10:23 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2014 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12441
Location: Brno
Country: Czech Republic (cz)
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).

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject: Re: How to debug NAV Web Service (not RTC)?
PostPosted: Thu May 10, 2012 11:53 am 
Offline

Joined: Sun Apr 15, 2007 9:09 am
Posts: 48
Location: Olomouc
Country: Czech Republic (cz)
now it works :)
kine, JAJ thanks a lot.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: