• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Debugging in Visual Studio

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

  • ciro1963
    started a topic Debugging in Visual Studio

    Debugging in Visual Studio

    Hello- I'm trying to run my strategy on Visual Studio. I followed the directions in the ninjatrader video that was supplied in the forum on this issue but still no luck. I did select " debug" in the code and compiled. When I attatch process from visual studio the program states that it's " running". It doesn't seem to do anything . I can't see any data. I'm trying to debug a strategy - not an indicator. How does the visual c program pick the primary instrunent? Do I start the strategy in ninjatrader and then attatch ?

  • joegellen20
    replied
    Originally posted by Levi439 View Post
    First look at the Visual Studio Debugger
    1. Set a breakpoint and start the debugger.
    2. Navigate code in the debugger using step commands.
    3. Step over code to skip functions.
    4. Step into a property.
    5. Run to a point in your code quickly using the mouse.
    6. Advance the debugger out of the current function.
    7. Run to cursor.
    Thanks for the updates.

    Leave a comment:


  • ciro1963
    replied
    Thank you Levi439!

    Leave a comment:


  • Levi439
    replied
    First look at the Visual Studio Debugger
    1. Set a breakpoint and start the debugger.
    2. Navigate code in the debugger using step commands.
    3. Step over code to skip functions.
    4. Step into a property.
    5. Run to a point in your code quickly using the mouse.
    6. Advance the debugger out of the current function.
    7. Run to cursor.

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    Hello ciro1963,

    Thank you for the post.

    You would need to attach and set a breakpoint followed by running the script that you want to check in the platform. This also will entail you include the script in the project using the solution explorer, this is so intellesense works and the debug symbols will be matched. Once you have a breakpoint set and it shows up as solid Red and not hollow white, that should be hit the next time that code is executed. Once the code execution is paused you should be able to view variables and other data the script is using before continuing.

    For this topic, I would generally suggest taking a short video of the process you are following as that would allow us to see the whole scope of the question and actions you have taken to further address this.


    I look forward to being of further assistance.



    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by mestril, Yesterday, 10:22 AM
1 response
14 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by hir04068, Yesterday, 09:29 PM
4 responses
15 views
0 likes
Last Post hir04068  
Started by bubblegum, Today, 03:51 AM
1 response
3 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by johnnybegoode, 05-24-2019, 10:16 PM
1 response
8 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by manugarc, Today, 01:15 PM
1 response
12 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X