Well, I made this little program and called it debugtest.cpp:
#include <iostream>
using namespace std;
int main()
{
int n = 100;
for (int i = 0; i < n; i++)
{
cout << "Loop counter: " << i << "\n";
}
}
I then compiled with "emcc debugtest.cpp -g -o debugtest.js". I hit F5 to
reload the page and the code just runs again even with a breakpoint at the
line with the cout. I almost wonder if there's just something I need to
enable in Chrome or some special way to start in debug mode.
On Thu, Aug 18, 2022 at 5:02 PM 'Sam Clegg' via emscripten-discuss <
[email protected]> wrote:
> Can you make it work with a simple hello world program compiled without
> optimizations? If not it sounds like maybe a bug in either toolchain or in
> the debugger plugin.
>
> If you can't set a breakpoint in a simple hello world program can you open
> a bug, and please include the full command line and full program you are
> using.
>
> cheers,
> sam
>
> On Thu, Aug 18, 2022 at 3:52 PM Gregory Propf <[email protected]> wrote:
>
>> Hello everyone, first post here and a simple (but aggravating) problem -
>> No matter what combination of -g flags or other command line tricks I use I
>> cannot seem to get Chrome to allow me to step through my C++ code. I can
>> add the CPP files and even set breakpoints but the program does not stop
>> for them. I'm doing this on Ubuntu 22.04 with the latest version of Chrome.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/emscripten-discuss/02e05a34-f383-4e39-b051-ff7bdb3ae1c9n%40googlegroups.com
>> <https://groups.google.com/d/msgid/emscripten-discuss/02e05a34-f383-4e39-b051-ff7bdb3ae1c9n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2_eNCJj_9qnzJfJrYpwkzzLQrVzd-kOnXT2GGB45Mi5Xg%40mail.gmail.com
> <https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2_eNCJj_9qnzJfJrYpwkzzLQrVzd-kOnXT2GGB45Mi5Xg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/CAKdUWHNMmujfCCMPjDr_cCoPLTqs-5Ab7hAkn%2BmdCiq%2BV872CA%40mail.gmail.com.