Commit 0fbe2717 authored by Alexei Filippov's avatar Alexei Filippov Committed by Commit Bot

[inspector] Add extra debug code to investigate crbug/897816

BUG=chromium:897816

Change-Id: Ie28efcab73ccbcb6d8b1a7508b99aec59f3a3ae3
Reviewed-on: https://chromium-review.googlesource.com/c/1384795Reviewed-by: 's avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58383}
parent 2950ec46
......@@ -238,6 +238,13 @@ void V8RuntimeAgentImpl::evaluate(
TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"),
"EvaluateScript");
int contextId = 0;
// TODO(alph): Temporary code to investigate the crash crbug.com/897816
char expression_for_debug[200];
std::snprintf(expression_for_debug, sizeof(expression_for_debug),
"V8RAI::evaluate %s", expression.utf8().c_str());
USE(expression_for_debug);
Response response = ensureContext(m_inspector, m_session->contextGroupId(),
std::move(executionContextId), &contextId);
if (!response.isSuccess()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment