PINE LIBRARY

JavaScript-style Debug Console

アップデート済
This library provides a JavaScript-style debug console to Pine Coders. It supports the most commonly used utilities from the WHATWG Console Standard including the following:

 • console.log
 • console.debug
 • console.info
 • console.warn
 • console.error
 • console.assert
 • console.count
 • console.countReset
 • console.group
 • console.groupEnd
 • console.clear

In addition to the WHATWG standard, this library also supports the following methods:

 • console.show
 • console.hide

FEATURES

 • Follows the WHATWG Console Standard, which is widely adopted by all major JavaScript runtimes including browsers and Node.js.
 • Provides an out-of-box UI with pre-configured theming, ensuring a clean and professional-looking console.
 • Allows for easy UI customizations to fit your personal preferences.
 • Has extremely simple import and initialization, making it easy to integrate with your existing codebase.

USAGE

1. Import this library:



2. Initialize the console object:



3. Use the console object to debug your code. Here are some examples:

リリースノート
Improve performance by not using `var` for constants.
リリースノート
It seems that PineScript has released a new version that's not backward compatible and led to the following error in the script: "Invalid object name: log. Namespaces of built-ins cannot be used."
As a result, I had to modify the variable names in the script to bypass the issue.
リリースノート
Always set the timezone as `syminfo.timezone` when calling `str.format_time`. It seems that in a new version of PineScript compiler the timezone parameter is no longer optional.
consoledebugdebuggerdebuggingdisplayformattingjavascriptLOGloggingutilitiesUTILS

Pineライブラリ

TradingViewの精神に則り、作者はPineコードをオープンソースライブラリとして公開し、コミュニティの他のPineプログラマーが再利用できるようにしました。作者に敬意を表します!このライブラリを個人的に、または他のオープンソースの投稿で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。


专业缠论指标: alphaviz.pro/chanlun
Email: contact@alphaviz.pro
Discord: discord.gg/w2fFtNega4
他のメディア:

免責事項