online-judge-tools / verification-helper

a testing framework for snippet libraries used in competitive programming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#line directives confuse VSCode

kmyk opened this issue · comments

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 / 再現方法

  1. Copy a generated code from the web
  2. Paste it to the code on the VSCode
  3. 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