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

Attaching Notepad++ to NinjaTrader

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

    Attaching Notepad++ to NinjaTrader

    Hello,

    For some reason I'm having extreme difficulty with this - attaching Notepad++ to Ninjatrader in order to debug code.
    • I've set NT to debug mode within a strategy that I've edited;
    • Using CS-script for Notepad++, I've attached Ninjatrader.exe as the external process;
    • When subsequently running a backtest using Strategy Analyzer, none of the code breaks as I've instructed in Notepad++.


    Do any of the devs here have experience debugging Ninjatrader scripts with Notepad++ and can help me out?

    Thanks in advance!

    #2
    Hello,

    Thank you for the post.

    I tried installing the mentioned plugin but It seems to only throw exceptions for me in notepad++ before I can even select a process to attach to.

    I have not used notepad++ for debugging myself before, but in general the steps in the correct order for debugging would be:

    Enable Debug mode.
    Compile to generate the pdb.
    Attach the debugger
    Apply and enable the strategy.

    If you are doing the attach in a different order it may effect the break points, or at least can in visual studio.

    If you are not opposed to using visual studio I would suggest using the free community edition as many users on the forum use visual studio and you will find much more information regarding debugging with visual studio.

    If any other users have had success in using the mentioned plugin with notepad++ for attaching and debugging, I would hope they can post their knowledge on the subject as well.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by trilliantrader, Today, 03:01 PM
    0 responses
    2 views
    0 likes
    Last Post trilliantrader  
    Started by pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    67 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    19 views
    0 likes
    Last Post benmarkal  
    Working...
    X