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

Debugging in Visual Studio: breakpoints don't work (video)

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

    Debugging in Visual Studio: breakpoints don't work (video)

    Hello. Can't let breakpoints work in Visual Studio. Not in indicators, neither in strategies.

    I read article about VS-debugging in manual and tried to reproduce all steps on this video:

    https://www.screencast.com/t/OUUi3ttNbcwM


    What can be the reason?

    (You can see VS and NT versions in attachment).

    Windows 10 x64
    Attached Files
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    The steps in the video you have linked appear correct.

    I've made a video with some vocal directions as well.
    Demonstrates how to add breakpoints with VS.1) Open project in VS from button on NinjaScript Editor toolbar2) Enable Debugging then recompile in NinjaScript Editor3) In VS click Debug -> Attach to process -> NinjaTrader.exe4) Add breakpoint to script5) Run script


    Using Visual Studio is not officially supported by NinjaTrader Support, however, NinjaTrader 8 does attempt to make this easier to use. Using break points is possible.

    Can you create a video showing the steps you have taken and the behavior you are receiving?
    Below is a publicly available link you can use to create short videos.
    Screen capture and recording software for Windows and Mac. Quickly get images and videos. Start your free trial today!
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Everything work perfect on Your video.
      I tried some times to reproduce all steps and get 2 different results.
      Below 2 videos - both reproduce different negative result for NT8 and both show positive result for NT7.

      https://www.screencast.com/t/05my4h3UHT9q

      https://www.screencast.com/t/8ToQsuaz
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Hello fx.practic,

        In neither of these videos am I seeing you reload the script. You have opened the Indicator window and clicked OK without making any changes which in NinjaTrader 8 will not cause the indicators to be reloaded and in NinjaTrader 7 will cause the indicators to be reloaded.

        Try adding an indicator to a chart. Then modify the code to add a print and compile. Open the Indicator window and click OK. Do you see your print?

        Please remake the video and after enabling debugging and attaching the process, right-click the chart -> select Reload NinjaScript.
        (Or remove the indicator from the chart, enable debugging and attache the process, and then add the indicator to the chart as I have demonstrated in the video I have provided you.)
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello, Chelsea.

          I made new video )

          https://www.screencast.com/t/BW5AZHGpy0Sa

          NinjaScript was reloaded for sure.
          fx.practic
          NinjaTrader Ecosystem Vendor - fx.practic

          Comment


            #6
            I reinstall Visual Studio, deinstal NT 8.0.4.0 and install NT 8.0.5.0
            Result same - breakpoints don't work.
            Last edited by fx.practic; 03-07-2017, 04:52 PM.
            fx.practic
            NinjaTrader Ecosystem Vendor - fx.practic

            Comment


              #7
              Hello fx.practic,

              While VisualStudio is not supported by NinjaTrader Support, we do want to find why when following the steps in the video I have provided you, you are receiving different behavior.

              Please send an email to platformsupport [at] ninjatrader [dot] com. In the email please include a link to this forum thread.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Email sent.
                fx.practic
                NinjaTrader Ecosystem Vendor - fx.practic

                Comment


                  #9
                  Problem was solved with help of NinjaTrader_ChelseaB by installing another version of Visual Studio - Microsoft Visual Studio Community 2015.

                  Thanks a lot to support!
                  fx.practic
                  NinjaTrader Ecosystem Vendor - fx.practic

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by judysamnt7, 03-13-2023, 09:11 AM
                  4 responses
                  59 views
                  0 likes
                  Last Post DynamicTest  
                  Started by ScottWalsh, Today, 06:52 PM
                  4 responses
                  36 views
                  0 likes
                  Last Post ScottWalsh  
                  Started by olisav57, Today, 07:39 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post olisav57  
                  Started by trilliantrader, Today, 03:01 PM
                  2 responses
                  21 views
                  0 likes
                  Last Post helpwanted  
                  Started by cre8able, Today, 07:24 PM
                  0 responses
                  10 views
                  0 likes
                  Last Post cre8able  
                  Working...
                  X