Using UserName option for Development and debugging

Joe_Mathis
Member Posts: 173
Using my laptop at client site for development.
I can use a SQL login to run the development environment, no problem.
I can use the UserName option in the ClientUserSettings.config to login to the NAV 2013 client, no problem.
I want to run the debugger... problem. ](*,)
I can't add a Breakpoint and I can't start the debugger because it want's to relate itself to my development login (which won't work).
For now I have to join the domain which is not an issue for this client, but I have other clients not so understanding, plus it's not the best solution.
I already thought about using RDC to a terminal server, which is viable, but I want to use my programs installed on the laptop.
Any thoughts on how to do this better?
Thanks!
P.S. I already posted the idea to http://www.ILoveNAV.com, so if you want to see it, vote for it. Hopefully I just missed something...
EDIT:
Found this...
Microsoft.Dynamics.Nav.Client.exe –debug "DynamicsNAV://localhost:7046/DynamicsNAV70/CRONUS International Ltd./runpage?page=9506"
http://msdn.microsoft.com/en-us/library/dd338743(v=nav.70).aspx
I can use a SQL login to run the development environment, no problem.
I can use the UserName option in the ClientUserSettings.config to login to the NAV 2013 client, no problem.
I want to run the debugger... problem. ](*,)
I can't add a Breakpoint and I can't start the debugger because it want's to relate itself to my development login (which won't work).
For now I have to join the domain which is not an issue for this client, but I have other clients not so understanding, plus it's not the best solution.
I already thought about using RDC to a terminal server, which is viable, but I want to use my programs installed on the laptop.
Any thoughts on how to do this better?
Thanks!
P.S. I already posted the idea to http://www.ILoveNAV.com, so if you want to see it, vote for it. Hopefully I just missed something...
EDIT:
Found this...
Microsoft.Dynamics.Nav.Client.exe –debug "DynamicsNAV://localhost:7046/DynamicsNAV70/CRONUS International Ltd./runpage?page=9506"
http://msdn.microsoft.com/en-us/library/dd338743(v=nav.70).aspx
0
Comments
-
So...
You can do it, but with some odd gyrations.
First you start the debugger from the command line.
Microsoft.Dynamics.Nav.Client.exe –debug "DynamicsNAV://localhost:7046/DynamicsNAV70/CRONUS International Ltd./runpage?page=9506"
IF you want to start it from a browser don't forget to put the %20 in for the spaces. I had trouble with it finding the page when I didn't use IE.
For some reason or another I couldn't get it to find any existing sessions.
Anyways you can start another session and the debugger will see it, but you won't have any break points set.
This is the gyration, you have to set it up using the breakpoints page.
This page lets you choose the Object type, Object ID, and then finally the Line No.
I haven't tried to figure out how it's counting the Line No. on anything other than tables, but on tables it starts with the four main triggers; OnInsert, OnModify, OnDelete, OnRename and then moves to the Functions, and finally to the fields.
So you have to count the code lines down to where you want to go in that order. I exported the code into a text editor and moved everything around to figure it out at first.
That took a while, so I thought for a minute :-k and then inserted an error where I wanted the first break point. You might not be able to do that on a production system.
Anyways, once you get your first breakpoint set and your session hits it, you can set more break points from inside the debugger.
If anyone else knows a better way, I'm all ears.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