Forum

    • Register
    • Login
    • Search
    • Categories

    Debug in VS2022

    General Questions
    5
    47
    664
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanH
      DanH last edited by

      Hi, I'd like to get a little advice on how to debug in VS2022. Can you run your app inside VS and - if it crashes - will VS point you to somewhere useful, either in your script or otherwise?!

      Thanks!

      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey @DanH last edited by

        @DanH said in Debug in VS2022:

        Can you run your app inside VS and - if it crashes - will VS point you to somewhere useful, either in your script or otherwise?!

        Yes

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        DanH 1 Reply Last reply Reply Quote 0
        • DanH
          DanH @d.healey last edited by

          @d-healey thanks Dave. So VS opens the project in Debug 64 mode. What do I want to do next?!

          d.healey 1 Reply Last reply Reply Quote 0
          • d.healey
            d.healey @DanH last edited by

            @DanH

            What do I want to do next?!

            Start by just running the program and seeing if it crashes.

            Keep an eye on the console output.

            If it crashes follow the stack trace back to the point where you think the crash originated.

            Add break points and step through the code to try and narrow down where the problem occurred.

            If none of this makes sense, head to YouTube.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            DanH 1 Reply Last reply Reply Quote 0
            • DanH
              DanH @d.healey last edited by

              @d-healey Thanks, which is the correct option / button to hit to run the project? 'Start Debugging' ? 'Local Windows debugger' ?

              d.healey 1 Reply Last reply Reply Quote 0
              • d.healey
                d.healey @DanH last edited by

                @DanH Click the play button

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                DanH 2 Replies Last reply Reply Quote 0
                • DanH
                  DanH @d.healey last edited by

                  @d-healey 🖖

                  1 Reply Last reply Reply Quote 0
                  • DanH
                    DanH @d.healey last edited by DanH

                    @d-healey Ok so I already hit an error

                    Breakpoint Instruction Executed
                    

                    It's in a source code file, Arpeggiator. cpp

                    If I hit play / continue it just seems to cycle back to this.

                    I have no idea what this means 😆

                    d.healey 1 Reply Last reply Reply Quote 0
                    • d.healey
                      d.healey @DanH last edited by

                      @DanH Is it an error? Is there a breakpoint there?

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      DanH 1 Reply Last reply Reply Quote 0
                      • DanH
                        DanH @d.healey last edited by

                        @d-healey Here's what it looks like. What should breakpoints look like?!

                        IMG_8899.JPG

                        d.healey Lindon 2 Replies Last reply Reply Quote 0
                        • d.healey
                          d.healey @DanH last edited by d.healey

                          @DanH Ah ok, that's a jassert. So now you have to figure out why that case of the switch statement is being reached.

                          To the call stack with you! (also check the console) 🙂

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          1 Reply Last reply Reply Quote 0
                          • Lindon
                            Lindon @DanH last edited by

                            @DanH -- in your jassert its falling thru to the default option- so are you sure you have the direction control set up in your arp?

                            HISE Development for hire.
                            www.channelrobot.com

                            DanH 1 Reply Last reply Reply Quote 0
                            • DanH
                              DanH @Lindon last edited by

                              @Lindon @d-healey yep so I found the direction knob in my project which wasn't being used, deleted any code to do with it and recompiled. I'm still running into the same issue.

                              Lindon do you mean I need to have something set up for the direction? I've opted out of using it.

                              From the console:

                              JUCE Assertion failure in Arpeggiator.cpp:810
                              A breakpoint instruction (__debugbreak() statement or a similar call) was executed in HALO-2 Debug.exe.
                              
                              Lindon 1 Reply Last reply Reply Quote 0
                              • Lindon
                                Lindon @DanH last edited by

                                @DanH well yes - generally you'd need to tell the arp which direction to go in...

                                HISE Development for hire.
                                www.channelrobot.com

                                DanH 2 Replies Last reply Reply Quote 0
                                • DanH
                                  DanH @Lindon last edited by

                                  @Lindon sure but it has a default setting... oooor does it.....

                                  Ok so in my project they were all unspecified... i.e no direction set. Bravo!

                                  Will recompile and try again!

                                  1 Reply Last reply Reply Quote 1
                                  • DanH
                                    DanH @Lindon last edited by

                                    @Lindon ok we got past that one! Cheers for the help 🙂

                                    Onto the next one! Please let me know if you have any ideas, I can't see a 'Gain Mode' on any envelopes...

                                    IMG_8900.JPG

                                    Lindon 1 Reply Last reply Reply Quote 0
                                    • Lindon
                                      Lindon @DanH last edited by

                                      @DanH "Show Call Stack"

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      DanH 1 Reply Last reply Reply Quote 0
                                      • DanH
                                        DanH @Lindon last edited by

                                        @Lindon thanks, I found the culprit and now have an open app in VS 👍

                                        Lindon 1 Reply Last reply Reply Quote 1
                                        • Lindon
                                          Lindon @DanH last edited by

                                          @DanH said in Debug in VS2022:

                                          @Lindon thanks, I found the culprit and now have an open app in VS 👍

                                          yes - so now the fun begins....

                                          HISE Development for hire.
                                          www.channelrobot.com

                                          DanH 1 Reply Last reply Reply Quote 0
                                          • DanH
                                            DanH @Lindon last edited by

                                            @Lindon indeed! So when playing notes on my instrument the console spits out messages like the below - anything to worry about?!

                                            The thread 0x206c has exited with code 0 (0x0).
                                            The thread 0x20f4 has exited with code 0 (0x0).
                                            The thread 0xbdc has exited with code 0 (0x0).
                                            The thread 0x468 has exited with code 0 (0x0).
                                            
                                            DanH 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            10
                                            Online

                                            1.1k
                                            Users

                                            7.0k
                                            Topics

                                            64.6k
                                            Posts