简体   繁体   English

如何在 vscode 或浏览器开发工具中查看 Scss 的 @debug 结果?

[英]How to view the Scss's @debug result in vscode or in browser dev tools?

How can I watch @debug result in scss?如何在 scss 中查看@debug结果?

I'm using the Live Sass Compiler by Glenn Marks in VSCode.我在 VSCode 中使用Glenn MarksLive Sass 编译器 Is there a way I can see the debug output in the terminal or chrome console?有没有办法在终端或 chrome 控制台中看到调试 output?

Code example:代码示例:

@debug 'hello world';
@debug math.div(10, 3);

Yes, you just need to set showOutputWindowOn to Debug .是的,您只需要将showOutputWindowOn设置为Debug You can see details in the settings您可以在设置中查看详细信息

More specifically ( as from another answer pointed out );更具体地说(从另一个答案指出); (in multiple diff ways):: (以多种差异方式)::

  • |-| |-| ctrl+shift+p > Preferences: Open Settings (UI) ( workbench.action.openSettings2 ) > Workspace > Live Sass Compile > Settings: Show Output Window On > Debug ctrl+shift+p > Preferences: Open Settings (UI) ( workbench.action.openSettings2 ) > Workspace > Live Sass Compile > Settings: Show Output Window On > Debug

  • |-| |-| ctrl+shift+p > Preferences: Open Workspace Settings (JSON) ( workbench.action.openWorkspaceSettingsFile ) > paste "liveSassCompile.settings.showOutputWindowOn": "Debug" ctrl+shift+p > Preferences: Open Workspace Settings (JSON) ( workbench.action.openWorkspaceSettingsFile ) > 粘贴"liveSassCompile.settings.showOutputWindowOn": "Debug"

  • |-| |-| ctrl+shift+p > exec liveSass.command.showOutputOn.debug ctrl+shift+p > 执行liveSass.command.showOutputOn.debug

  • |-| |-| (or you may use comments as an output, as a workaround...) (或者您可以将评论用作 output,作为解决方法...)

Reference::参考::

answer above上面的回答

https://github.com/glenn2223/vscode-live-sass-compiler/blob/master/docs/settings.md#livesasscompilesettingsshowoutputwindowon https://github.com/glenn2223/vscode-live-sass-compiler/blob/master/docs/settings.md#livesasscompilesettingsshowoutputwindowon

https://github.com/glenn2223/vscode-live-sass-compiler/blob/master/docs/settings.md#livesasscommandshowoutputon https://github.com/glenn2223/vscode-live-sass-compiler/blob/master/docs/settings.md#livesasscommandshowoutputon

https://github.com/ritwickdey/vscode-live-sass-compiler/issues/234#issuecomment-762474594 (outdated?) https://github.com/ritwickdey/vscode-live-sass-compiler/issues/234#issuecomment-762474594 (过时?)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Chrome开发者工具仅显示一个scss文件 - Chrome dev tools only showing one scss file 在Chrome开发工具上设置.scss文件的编辑 - Setting up editing of .scss files on Chrome dev tools 如何在Rails 3.1项目中查看SCSS @warn和@debug指令? - How do I view SCSS @warn and @debug directives in a Rails 3.1 project? 将浏览器的宽度设置为scss中的变量 - setting the browser's width as a variable in scss 我可以在开发工具中看到我的.scss文件,但在文本编辑器中却看不到 - I can see my .scss files in the Dev Tools, but not in my text editor 为什么我的Sassy CSS样式没有被应用? 在Chrome Dev工具中使用Scss接收MIME类型错误 - Why are my Sassy CSS styles not being applied? Receiving MIME Type Error with Scss in Chrome Dev tools 如何在 SCSS 中定位 firefox 或任何其他浏览器? - How to target firefox or any other browser in SCSS? 浏览器如何知道scss文件? - How can a browser know the scss files? 如何在 Angular 中应用基于浏览器语言的 SCSS? - How to apply SCSS based on browser language in Angular? 如何在SCSS / COMPASS中编写浏览器标志? - How to write browser flags in SCSS / COMPASS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM