#line directives confuse VSCode
kmyk opened this issue · comments
Kimiyuki Onaka commented
Summary / 概要
oj-bundle
outputs #line
directives to trace the origin of lines in the generated code. This feature may confuse IDE when users copy & paste a bundled code from a web documentation. Possibly we should disable this feature on the embedded code in the document.
Steps to reproduce / 再現方法
- Copy a generated code from the web
- Paste it to the code on the VSCode
- Use breakpoints feature
environments:
- unknown
Expected behavior / 期待される挙動
Actual behavior / 実際の挙動
something wrong
Other notes / その他
verification-helper で bundle したライブラリを張り付けて visual studio で実行すると、# line が悪さをするっぽくてブレークポイントが上手く機能しなくなる
— 熨斗袋 (@noshi91) March 29, 2021
他人のライブラリを見て貼り付けるとき Web ページで bundle を押してコピペしています
— 熨斗袋 (@noshi91) March 29, 2021
そうでない方法があるかどうかは分かりません