Home > Enterprise >  VSCode and Stencil (tsx): `debugger` statement doesn't put browser into debug mode
VSCode and Stencil (tsx): `debugger` statement doesn't put browser into debug mode

Time:04-29

I'm very new to debugging JavaScript, let alone Typescript, let alone a Stencil project that uses tsx files (which I assume are a certain type of reactive Typescript files).

I hoped that by adding a debugger statement into the code, using a refresh in Chrome the Debugging tools would show up. But nothing happens. If I add a console.log at the same place, it behaves as expected. But nothing happens with a debugger statement.

What to do? I don't want to debug with tons of console.log everywhere.

  • Related