FranckFreiburger / vue3-sfc-loader

Single File Component loader for Vue2 and Vue3. Load .vue files directly from your HTML. No node.js environment, no build step.
MIT License
1.03k stars 116 forks source link

Breakpoints #123

Closed leecbryant closed 5 months ago

leecbryant commented 2 years ago

Is it, currently, possible to add breakpoints in Dev Tools - like pure HTML/JS? If not, is it possible to add them in code?

Finally, if neither are possible, will this be a feature in the future?

austinrscott commented 2 years ago

I've had some success using debugger; statements, but it's been minimal. You can't really step through functions but if you get the right spot you can get a chance to inspect frame data and execute statements. It would be awesome if we could use breakpoints

btsimonh commented 2 years ago

this worked REALLY well with html-vue-loader.. not sure why the vm displays this one all on one line?

Hoshinokoe commented 1 year ago

still no way to debug normal code (not a single line) ?

FranckFreiburger commented 5 months ago

I plan to add a devMode : boolean option that will preserve, as far as possible, the originale script formating.