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!
See more
See less

Partner 728x90

Collapse

Compiling Ninjascript while stopped in Visual Studio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Barry Milan, Today, 10:35 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by WeyldFalcon, 12-10-2020, 06:48 PM
    14 responses
    1,428 views
    0 likes
    Last Post Handclap0241  
    Started by DJ888, Yesterday, 06:09 PM
    2 responses
    9 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    40 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Today, 08:51 AM
    2 responses
    16 views
    0 likes
    Last Post bill2023  
    Working...
    X