Ticket #4175

runtime errorを出したコードの行番号を表示してほしい
Date d'ouverture: 2004-04-14 00:56 Dernière mise à jour: 2005-08-05 21:57

Rapporteur:
Propriétaire:
État:
Atteints
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

スクリプトの実行時にruntime errorが生じたら、生じさせ
たコードの行番号を表示してほしい。

Ticket History (3/8 Histories)

2004-04-14 07:54 Updated by: darai
Commentaire
Logged In: YES
user_id=6842

構文木を作るときに、各ノードにコード位置を保存しておけば、
どこでエラーが起きたかは出力できると思います。当初そのよう
にしようかと思ったんですが、容量が大きくなるのが気になって
やめてしまいました。

generatorでの実装も進めるので、どちらを優先するか問題です
ね。
2004-04-22 17:48 Updated by: panacoran
Commentaire
Logged In: YES
user_id=6886

この機能がないとスクリプトを書くときにかなりストレスがたま
ります。これは簡単に実装できるはずです。次のリリースに入れ
たいので、先に片付けてしまいましょう。
2004-04-22 18:19 Updated by: darai
Commentaire
Logged In: YES
user_id=6842

確かにこの機能はあった方がいいですね。
私が担当しましょう。6月くらいまでに頑張ってみます。
2004-04-22 18:19 Updated by: darai
  • Propriétaire Update from (Aucun) to darai
2005-07-31 18:57 Updated by: darai
  • État Update from Ouvert to Atteints
2005-07-31 18:57 Updated by: darai
  • Ticket Close date is changed to 2005-07-31 18:57
Commentaire
Logged In: YES
user_id=6842

構文木を作るときに、各ノードにContextTokenを保存するように
しました。
Parse/RuntimeExceptionにContextTokenプロパティを追加しまし
た。
各ノードはParse/RuntimeExceptionを発生させる際に
ContextTokenを設定してthrowします。
2005-07-31 20:15 Updated by: darai
  • Ticket Close date is changed to 2005-07-31 20:15
Commentaire
Logged In: YES
user_id=6842

先ほどコミットしたものに不備がありました。
関数内でエラーが起きても呼び出し元の行番号が表示されてしま
います。
修正しました。
2005-08-05 21:57 Updated by: panacoran
  • Ticket Close date is changed to 2005-08-05 21:57
Commentaire
Logged In: YES
user_id=6886

言語処理系の部分は手を出そうとすると別の意味で大変なので、
手を出しかねてました。助かります。

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion