Maybe there is a command line interface to the compiler somewhere under the hood?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Compiling Ninjascript while stopped in Visual Studio
Collapse
X
-
Compiling Ninjascript while stopped in Visual Studio
I have this bad habit of programming in debugger. So my current pattern is, I am in Visual Studio, I've set a bunch of breakpoints, I make a change (still in Visual Studio), then I go to NinjaTrader and attempt to compile the code; only it would not be compiled because NinjaTrader is halted. So now I have to disable my breakpoints and hit "Continue" just to compile.
Maybe there is a command line interface to the compiler somewhere under the hood?Tags: None
-
Hello,
Thank you for the question.
Yes this would be the case, if you are debugging NinjaTrader and you have currently hit a break point, you would be unable to compile because ninjatrader would be locked or halted for debug.
You would need to detach the debugger, or press continue from the halt as that has basically paused NinjaTrader once you hit a breakpoint.
This is not really an item that you can get around, this is the case with any .net application that you attach to. if you "break" the application, it will be unresponsive as it stops the code execution to let you review the portion of code at the break point and step through the logic.
If you are using Visual Studio community or have a pro version that allows extensions, you could look into things like "resurrect" which basically maps the "attach to process" to a single button. I use this often with NT7 as I need to go into the platform to compile, then jump back and press the button and I am back to debugging.
Please let me know if I may be of additional assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
142 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
81 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
125 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
120 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
98 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment