Debugging in 2009 Service tier

generic
Member Posts: 511
I was following the following blog on debugging Here are a couple of things I noticed while doing this on XP.
http://blogs.msdn.com/clausl/archive/20 ... -2009.aspx
First after you turn on in customsettnig.config by adding the line
<add key="EnableDebugging" value="true" />
the location where c# is created is in a different folder. It's in
C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server
Inside you'll find a sub folder with a number. This number is equal to process ID of Service Tier. So when you restart Service tier it will get a different Processor ID and all existing folder gets deleted.
If you are debugging in VS 2008 then you have disable a dubbging option "Enable Just My Code"
You cannot debugg for a long time otherwise client will close connection with Service tier. Is there a setting to make that timeout longer somewhere? or a setting for the RT client that it's in debug mode and doesn't disconnect.
The Service tier crashes after this and I had to restart it.
http://blogs.msdn.com/clausl/archive/20 ... -2009.aspx
First after you turn on in customsettnig.config by adding the line
<add key="EnableDebugging" value="true" />
the location where c# is created is in a different folder. It's in
C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server
Inside you'll find a sub folder with a number. This number is equal to process ID of Service Tier. So when you restart Service tier it will get a different Processor ID and all existing folder gets deleted.
If you are debugging in VS 2008 then you have disable a dubbging option "Enable Just My Code"
You cannot debugg for a long time otherwise client will close connection with Service tier. Is there a setting to make that timeout longer somewhere? or a setting for the RT client that it's in debug mode and doesn't disconnect.
The Service tier crashes after this and I had to restart it.
0
Comments
-
The EnableDebugging flag doesn't have any meaning in the Marketing beta nor CTP4.
You can still debug, but it won't generate all C# files for you - it will do that when it meets the object the first time.
If the OperationTimeout is set to MaxValue in CustomSettings.config - that is it.
<add key="OperationTimeout" value="MaxValue"></add>
BTW - note that SP1 is required for Visual Studio (that be 2005 or 2008)Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
I want to debug Sales-Quote report in RTC.
I followed the steps as mentioned in http://blogs.msdn.com/clausl/archive/2008/10/14/debugging-in-nav-2009.aspx
After completing the first three steps of the above blog, i tried looking at "C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60 \ Server \ MicrosoftDynamicsNavServer\source\Report" folder.
I do not see any source code getting generated so that i can open it in VS and set breakpoint in it.
What is causing the problem?
Regards,
HemantRegards,
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)0 -
The path depends on the Win version. Check the Eventlog for more info about which folder is used.0
-
I am using Windows Server 2003 SP2.
I do not see any entry in EventViewer when i start RTC.
Pls advise.Regards,
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)0 -
Not when you start RTC, but when you start NST. The source codes are on the server where the NST is running (and I mean the event log of NST)...0
-
And you did start the RTC after setting the enabledebugging key?
That is when the files are generated.
Also first time you start the RTC it might timeout due to the servicetier being busy generating files.
Do you have any sources in the other directories? (codeunit, page)
If not - then I guess you key is wrong - misspelled or something, servicetier didn't pick it up.Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
Yes i was able to see the generated source code when starting NST.
The problem now i face is-
- I opened Report204.cs
- Attached Microsoft.Dynamics.NAV.Server.exe process.
- Set breakpoint in Sales_HeaderOnAfterGetRecord(). The breakpoint is seen enabled.
- Switched to RTC.
- Opened Sales Quote and selected a quote for printing.
- Clicked Print button.
- It opened Sales Quote print|preview dialog (Classic layout).
- I clicked Preview button.
It does not switch to VS for debugging and stop at the selected breakpoint.Regards,
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)0 -
If it shows you classic request form and not request page, you do not have Layout for the report and it is running in classic client...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