amorosik Expert Licensed User Longtime User Mar 12, 2021 #1 How do you go about debugging a program? By 'debug' I mean: - display program variables - set breakpoints - advance the code step-by-step
How do you go about debugging a program? By 'debug' I mean: - display program variables - set breakpoints - advance the code step-by-step
thetahsk Active Member Licensed User Longtime User Mar 12, 2021 #2 amorosik said: How do you go about debugging a program? By 'debug' I mean: - display program variables - set breakpoints - advance the code step-by-step Click to expand... Goto in your Project Folder and select the Objects\src folder. Start Visual Studio with installed Visual Micro Plug-In. Start new project and import the code src.ino from B4R. Compile with debug information and set your breakpoints. As you know the B4R toolchain generates C++ code. It's not easy to debug but sometimes it helps. Upvote 0
amorosik said: How do you go about debugging a program? By 'debug' I mean: - display program variables - set breakpoints - advance the code step-by-step Click to expand... Goto in your Project Folder and select the Objects\src folder. Start Visual Studio with installed Visual Micro Plug-In. Start new project and import the code src.ino from B4R. Compile with debug information and set your breakpoints. As you know the B4R toolchain generates C++ code. It's not easy to debug but sometimes it helps.
klaus Expert Licensed User Longtime User Mar 12, 2021 #3 Without the procedure above you, which I did not know, can only use Logs. You cannot set breakpoints nor advance the code step-by-step. Upvote 0
Without the procedure above you, which I did not know, can only use Logs. You cannot set breakpoints nor advance the code step-by-step.
amorosik Expert Licensed User Longtime User Mar 12, 2021 #4 thetahsk said: Goto in your Project Folder and select the Objects\src folder. Start Visual Studio with installed Visual Micro Plug-In. Start new project and import the code src.ino from B4R. Compile with debug information and set your breakpoints. As you know the B4R toolchain generates C++ code. It's not easy to debug but sometimes it helps. Click to expand... Yes, thanks, I know the Visual Studio + Visual Micro procedure My question was about understanding how to debug using the B4R environment What I wanted to say is that I see that with the other B4A and B4J environments it is possible to perform the classic debugging I wanted to understand if it was I who could not find a way to do it even with B4R or if the development environment does not allow it Upvote 0
thetahsk said: Goto in your Project Folder and select the Objects\src folder. Start Visual Studio with installed Visual Micro Plug-In. Start new project and import the code src.ino from B4R. Compile with debug information and set your breakpoints. As you know the B4R toolchain generates C++ code. It's not easy to debug but sometimes it helps. Click to expand... Yes, thanks, I know the Visual Studio + Visual Micro procedure My question was about understanding how to debug using the B4R environment What I wanted to say is that I see that with the other B4A and B4J environments it is possible to perform the classic debugging I wanted to understand if it was I who could not find a way to do it even with B4R or if the development environment does not allow it
amorosik Expert Licensed User Longtime User Mar 12, 2021 #5 klaus said: Without the procedure above you, which I did not know, can only use Logs. You cannot set breakpoints nor advance the code step-by-step. Click to expand... Okay, now it's clear Thank you Upvote 0
klaus said: Without the procedure above you, which I did not know, can only use Logs. You cannot set breakpoints nor advance the code step-by-step. Click to expand... Okay, now it's clear Thank you
amorosik Expert Licensed User Longtime User Mar 12, 2021 #6 Maybe Massimo Banzi heard us when we were discussing the need for a serious debugging system Version 2.0 of original Arduino Ide, features the long-awaited LIVE DEBUGGER ????????????????????? Last edited: Mar 13, 2021 Upvote 0
Maybe Massimo Banzi heard us when we were discussing the need for a serious debugging system Version 2.0 of original Arduino Ide, features the long-awaited LIVE DEBUGGER ?????????????????????
hatzisn Expert Licensed User Longtime User Mar 13, 2021 #7 amorosik said: Maybe Massimo Banzi heard us when we were discussing the need for a serious debugging system Version 2.0 of original Arduino Ide, features the long-awaited LIVE DEBUGGER ????????????????????? Click to expand... That's great. Pitty for me that none of the boards that I have can work with it. Since it is based on the cli version, I suppose that @Erel can take advantage of it for the given boards (and the boards to come) in B4R to add Debug capabilities in B4R. I do not know about the others but I would be willing to pay a minor yearly fee (or a donation) for B4R if we could take advantage of such environment because the Log(".....") is not always the perfect way to debug. Upvote 0
amorosik said: Maybe Massimo Banzi heard us when we were discussing the need for a serious debugging system Version 2.0 of original Arduino Ide, features the long-awaited LIVE DEBUGGER ????????????????????? Click to expand... That's great. Pitty for me that none of the boards that I have can work with it. Since it is based on the cli version, I suppose that @Erel can take advantage of it for the given boards (and the boards to come) in B4R to add Debug capabilities in B4R. I do not know about the others but I would be willing to pay a minor yearly fee (or a donation) for B4R if we could take advantage of such environment because the Log(".....") is not always the perfect way to debug.
Daestrum Expert Licensed User Longtime User Mar 13, 2021 #8 You can 'sort of' integrate the GDB debugger in the IDE, but it still needs a lot of faffing around to be useful - been trying it on an 8266 with a little wrapper for the GDBStub file. Upvote 0
You can 'sort of' integrate the GDB debugger in the IDE, but it still needs a lot of faffing around to be useful - been trying it on an 8266 with a little wrapper for the GDBStub file.
Erel B4X founder Staff member Licensed User Longtime User Mar 14, 2021 #9 The whole purpose of this thread was to promote a different development tool. Just last month the OP made a feature request about this topic: https://www.b4x.com/android/forum/t...ogram-variable-view-cpu-register-view.127882/ I don't understand this approach. If you want to use a different tool then use a different tool. Why promote it here? Upvote 0
The whole purpose of this thread was to promote a different development tool. Just last month the OP made a feature request about this topic: https://www.b4x.com/android/forum/t...ogram-variable-view-cpu-register-view.127882/ I don't understand this approach. If you want to use a different tool then use a different tool. Why promote it here?