Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1387)

Unified Diff: runtime/vm/debugger.cc

Issue 11696005: Improve line info accuracy in debugging (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.cc
===================================================================
--- runtime/vm/debugger.cc (revision 16548)
+++ runtime/vm/debugger.cc (working copy)
@@ -937,10 +937,11 @@
bpt = new CodeBreakpoint(func, best_fit_index);
if (FLAG_verbose_debug) {
OS::Print("Setting breakpoint in function '%s' "
- "(%s:%"Pd") (PC %#"Px")\n",
+ "(%s:%"Pd") (Token %"Pd") (PC %#"Px")\n",
String::Handle(func.name()).ToCString(),
String::Handle(bpt->SourceUrl()).ToCString(),
bpt->LineNumber(),
+ bpt->token_pos(),
bpt->pc());
}
RegisterCodeBreakpoint(bpt);
@@ -1351,10 +1352,12 @@
CodeBreakpoint* bpt = GetCodeBreakpoint(top_frame->pc());
ASSERT(bpt != NULL);
if (FLAG_verbose_debug) {
- OS::Print(">>> hit %s breakpoint at %s:%"Pd" (Address %#"Px")\n",
+ OS::Print(">>> hit %s breakpoint at %s:%"Pd" "
+ "(token %"Pd") (address %#"Px")\n",
bpt->IsInternal() ? "internal" : "user",
String::Handle(bpt->SourceUrl()).ToCString(),
bpt->LineNumber(),
+ bpt->token_pos(),
top_frame->pc());
}
« no previous file with comments | « no previous file | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698