2
|
1 |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
|
2 |
// Use of this source code is governed by a BSD-style license that can be
|
|
3 |
// found in the LICENSE file.
|
|
4 |
|
|
5 |
package org.chromium.sdk.internal.tools.v8.request;
|
|
6 |
|
|
7 |
import org.chromium.sdk.internal.tools.v8.DebuggerCommand;
|
|
8 |
|
|
9 |
/**
|
|
10 |
* Represents a "backtrace" V8 request message.
|
|
11 |
*/
|
|
12 |
public class BacktraceMessage extends DebuggerMessage {
|
|
13 |
|
|
14 |
/**
|
|
15 |
* @param fromFrame nullable frame range start (0 by default)
|
|
16 |
* @param toFrame nullable frame range end (last frame by default)
|
|
17 |
* @param inlineRefs whether to inline object refs
|
|
18 |
*/
|
|
19 |
public BacktraceMessage(Integer fromFrame, Integer toFrame, boolean inlineRefs) {
|
|
20 |
super(DebuggerCommand.BACKTRACE.value);
|
|
21 |
putArgument("fromFrame", fromFrame);
|
|
22 |
putArgument("toFrame", toFrame);
|
|
23 |
if (inlineRefs) {
|
|
24 |
putArgument("inlineRefs", inlineRefs);
|
|
25 |
}
|
|
26 |
}
|
|
27 |
}
|