P.S. VS2022 Pro, Win 10Pro, LTSC
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Debugging problem with version 8.1.2
Collapse
X
-
Debugging problem with version 8.1.2
In general, a strange situation. With version 8.0.28, everything is OK. Debugging works. With version 2.1.* everything is bad. The symbols are loaded, but the breakpoint does not work. I don't know what to do anymore, I just have to ask here.
P.S. VS2022 Pro, Win 10Pro, LTSCLast edited by alexr; 11-06-2023, 12:32 PM.Tags: None
-
Hello alexr,
You could hover your mouse over the breakpoint and follow the instructions in the breakpoint message seen below.
"To allow this breakpoint to be hit: click the 'Settings...' button that appears, then click 'Location', 'Allow the source code to be different from the original'.
After following those instructions the breakpoint will be hit.
After clicking the Settings button in that hover dialog the Location it mentions is the blue link at the top of the options. You can then check the box to allow the breakpoint and it will turn red/be hit. It will produce a warning the first time its hit and you can select yes to allow the breakpoint to be hit. After that it can be hit multiple times without warning.JesseNinjaTrader Customer Service
-
Of course, this is the latest compiled assembly. I noticed the following thing, after cleaning the Tmp folder and after compilation, another copy of the dll compiled a day earlier appeared, but it doesn't seem to be added to the debugger. It does not match the content of the last copied file, and is almost identical to NinjaTrader.Custom.dll. No changes were made to the source code.
All this looks very strange.
For now, I disable the source code check while working, but it is not very convenient.
Comment
-
Hello alexr,
You should not manually remove any of the tmp files that NinjaTrader creates manually. Please allow the platform to compile and regenerate/remove files by its self. If you are manually modifying files that can cause issues with how the platform works.
JesseNinjaTrader Customer Service
Comment
-
- Likes 1
Comment
-
Hello frslvr and fx.practic,
The steps to allow breakpoints to be hit is listed in post number 2. If you mouse over a breakpoint it also lists the instructions to allow for breakpoints to be hit, that is the second image in post 1. You can enable that for individual breakpoints or you can also change the settings in visual studios configuration to always allow breakpoints. To get to the dialog shown in the image you can hover the mouse over a breakpoint.JesseNinjaTrader Customer Service
Comment
-
alexr, please, explain how did you do this: "I disable the source code check while working"?
I found this instruction: https://learn.microsoft.com/en-us/vi...s?view=vs-2022
Is this what you did?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Karado58, 11-26-2012, 02:57 PM
|
8 responses
14,825 views
0 likes
|
Last Post Today, 09:09 AM | ||
Started by Option Whisperer, Today, 09:05 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 09:05 AM | ||
Started by cre8able, Yesterday, 01:16 PM
|
3 responses
11 views
0 likes
|
Last Post
by cre8able
Today, 08:28 AM
|
||
Started by Harry, 05-02-2018, 01:54 PM
|
10 responses
3,203 views
0 likes
|
Last Post
by tharton3
Today, 08:52 AM
|
||
Started by ChartTourist, Today, 08:22 AM
|
0 responses
6 views
0 likes
|
Last Post
by ChartTourist
Today, 08:22 AM
|
Comment