diff options
| author | iamgamja <hmmthinking@naver.com> | 2022-02-09 16:01:55 +0900 |
|---|---|---|
| committer | Sungwoo Park <codest99@gmail.com> | 2022-02-20 18:36:04 +0900 |
| commit | 2aa763f8fae4fc46bbbfd5b012f865afa69c068b (patch) | |
| tree | 7dd4532934429da5788a7e1f5a3c060083863f78 /files/ko/web/api/console/trace | |
| parent | 87990b6bf559dd76dd65cefc2b112daacad9962a (diff) | |
| download | translated-content-2aa763f8fae4fc46bbbfd5b012f865afa69c068b.tar.gz translated-content-2aa763f8fae4fc46bbbfd5b012f865afa69c068b.tar.bz2 translated-content-2aa763f8fae4fc46bbbfd5b012f865afa69c068b.zip | |
edit files
Diffstat (limited to 'files/ko/web/api/console/trace')
| -rw-r--r-- | files/ko/web/api/console/trace/index.md | 84 |
1 files changed, 36 insertions, 48 deletions
diff --git a/files/ko/web/api/console/trace/index.md b/files/ko/web/api/console/trace/index.md index 2726eca0d4..2fefaf5fb0 100644 --- a/files/ko/web/api/console/trace/index.md +++ b/files/ko/web/api/console/trace/index.md @@ -1,35 +1,44 @@ --- title: console.trace() -slug: Web/API/Console/trace +slug: Web/API/console/trace tags: - API + - Chrome - DOM + - Debugging - Firefox - - 디버깅 - - 메소드 - - 웹 개발 - - 웹 콘솔 - - 추적 - - 콘솔 - - 크롬 + - Method + - String + - Web Development + - console.trace() + - trace + - web console +browser-compat: api.console.trace translation_of: Web/API/Console/trace --- -<div>{{APIRef("Console API")}}</div> +{{APIRef("Console API")}} -<p><a href="/en-US/docs/Tools/Web_Console">웹 콘솔</a>에 스택 추적을 출력합니다.</p> +**`console.trace()`** 메서드는 [웹 콘솔](/ko/docs/Tools/Web_Console)에 스택 추적을 출력합니다. -<p>{{AvailableInWorkers}}</p> +{{AvailableInWorkers}} -<p>자세한 내용과 예제는 {{domxref("console")}} 내의 <a href="/ko/docs/Web/API/console#Stack_traces">스택 추적</a>을 확인하세요.</p> +자세한 내용과 예제는 {{domxref("console")}} 문서의 [스택 추적](/ko/docs/Web/API/console#스택_추적)을 참고하세요. -<h2 id="문법">문법</h2> +## 구문 -<pre class="syntaxbox">console.trace(); -</pre> +```js +console.trace( [...any, ...data ]); +``` -<h2 id="예제">예제</h2> +### 매개변수 -<pre class="brush: js">function foo() { +- `...any, ...data` {{optional_inline}} + - : 스택 추적과 함께 콘솔에 출력할 0개 이상의 객체. {{domxref("console.log()")}} 메서드에 전달되는 것과 동일한 방식으로 조합되고 형식이 지정됩니다. + +## 예제 + +```js +function foo() { function bar() { console.trace(); } @@ -37,41 +46,20 @@ translation_of: Web/API/Console/trace } foo(); -</pre> +``` -<p>콘솔에 다음과 같은 추적이 표시됩니다.</p> +콘솔에 다음과 같은 추적이 표시됩니다. -<pre>bar +``` +bar foo -<anonymous></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> - +<anonymous> +``` +## 명세 -<p>{{Compat("api.Console.trace")}}</p> +{{Specifications}} -<h2 id="함께_보기">함께 보기</h2> +## 브라우저 호환성 -<ul> - <li><a class="external" href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly documentation: Console</a></li> -</ul> +{{Compat}} |
