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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
637 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
571 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment