aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/console/trace/index.html
blob: 2726eca0d4cabb88d1416454f71b16a25a099bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
title: console.trace()
slug: Web/API/Console/trace
tags:
  - API
  - DOM
  - Firefox
  - 디버깅
  - 메소드
  - 웹 개발
  - 웹 콘솔
  - 추적
  - 콘솔
  - 크롬
translation_of: Web/API/Console/trace
---
<div>{{APIRef("Console API")}}</div>

<p><a href="/en-US/docs/Tools/Web_Console">웹 콘솔</a>에 스택 추적을 출력합니다.</p>

<p>{{AvailableInWorkers}}</p>

<p>자세한 내용과 예제는 {{domxref("console")}} 내의 <a href="/ko/docs/Web/API/console#Stack_traces">스택 추적</a>을 확인하세요.</p>

<h2 id="문법">문법</h2>

<pre class="syntaxbox">console.trace();
</pre>

<h2 id="예제">예제</h2>

<pre class="brush: js">function foo() {
  function bar() {
    console.trace();
  }
  bar();
}

foo();
</pre>

<p>콘솔에 다음과 같은 추적이 표시됩니다.</p>

<pre>bar
foo
&lt;anonymous&gt;</pre>

<h2 id="명세">명세</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName("Console API", "#trace", "console.trace()")}}</td>
   <td>{{Spec2("Console API")}}</td>
   <td>초기 정의</td>
  </tr>
 </tbody>
</table>

<h2 id="브라우저_호환성">브라우저 호환성</h2>



<p>{{Compat("api.Console.trace")}}</p>

<h2 id="함께_보기">함께 보기</h2>

<ul>
 <li><a class="external" href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly documentation: Console</a></li>
</ul>