You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was expecting that the inline logging, or logging to the CN view what capture the values / logs I was outputing with console.log in .astro files to work, but instead nothing was captured.
However when I did some logging in a plain JS file it was captured as expected.
First is how it appears in .astro file
Second in the JS file
Node ver 23.7.0
npm ver 10.9.2
Astro ver 5.2.3
Version
1.0.386 (PRO)
CLI command to start your dev tool
npm run dev
Steps to reproduce (or sample repo)
Create a .astro file
add a simple script tag
const date = new Date()
console.log("Hello"
Set breakpoints on both, note the little blue indicator doesn't appear
Use the component, note nothing is logged to CN
Repeat with the same in a normal JS file (I used rss.xml.js for each)
Again set breakpoints on the code and this time
Log output
06:06:53.317 info host ------------ starting ------------
06:06:53.337 info extension host process output: port:[50455]
06:06:53.337 info extension
06:06:53.341 info host client connected: extension { address: '127.0.0.1', family: 'IPv4', port: 50455 }
06:06:53.351 info host starting host: {"extensionFolder":"/Users/tarasis/.vscode/extensions/wallabyjs.console-ninja-1.0.386","runtimeHookFile":"/Users/tarasis/.vscode/extensions/wallabyjs.console-ninja-1.0.386/out/runtimeHook/tracer.js","globalErrorHandlerFile":"/Users/tarasis/.vscode/extensions/wallabyjs.console-ninja-1.0.386/out/runtimeHook/errorHandler.js","networkLoggingHandlerFile":"/Users/tarasis/.vscode/extensions/wallabyjs.console-ninja-1.0.386/out/runtimeHook/networkLoggingHandler.js","filesToInstrument":[{"path":"/users/tarasis/programming/websites/tarasis.net/src/pages/blog/index.astro","autoLogPoints":[{"range":{"startLine":97,"endLine":97,"startColumn":0,"endColumn":0}},{"range":{"startLine":100,"endLine":100,"startColumn":0,"endColumn":0}}],"reason":"autoLogPoints"},{"path":"/users/tarasis/programming/websites/tarasis.net/src/components/altthemeselector.astro","autoLogPoints":[{"range":{"startLine":48,"endLine":48,"startColumn":0,"endColumn":0}},{"range":{"startLine":50,"endLine":50,"startColumn":0,"endColumn":0}}],"reason":"autoLogPoints"},{"path":"/users/tarasis/programming/websites/tarasis.net/src/pages/rss.xml.js","autoLogPoints":[{"range":{"startLine":6,"endLine":6,"startColumn":0,"endColumn":0}}],"reason":"autoLogPoints"}],"debug":false,"config":{"dateTimeFormat":"HH:mm:ss.SSS","dateTimeDisplayMode":"Absolute","installBinToPath":true,"openLinksInEditor":true,"maxLogViewerEntries":15000,"showWelcomeMessageInTools":true,"fontSize":10,"autoClearLogViewerOnFileChanges":true,"outputMode":"In View","captureFunctions":false,"searchUrl":"https://www.google.com/search?q={query}","enableProFeatures":true,"toolsToAutoPatch":["vite","angular","jest","webpack","next.js","nest.js","cypress","http-server","serve","live-server","nuxt","remix","qwik","hydrogen","serverless","astro","live-server-extension","live-preview-extension"],"showErrors":true,"showLogsOnlyFromOpenedFiles":false,"showLogsFromLogPointsOnly":false,"showLogsFromMultipleRunningToolsTogether":false,"predictiveLoggingEnabled":true,"allowConsoleLogToTriggerPredictions":true,"showNetworkRequests":true},"allowedHosts":["localhost","127.0.0.1","example.cypress.io","Zifnab.local","192.168.0.101"],"host":"127.0.0.1","forcedStart":true,"startTime":1738562813121}
06:06:53.374 info host starting tools discovery and integration
06:06:53.377 info host looking for tools to patch
06:06:53.444 info host worker Starting Host Worker...
06:06:53.454 info host found 6 tool file(s) to patch
06:06:53.455 info host patching /Users/tarasis/.vscode/extensions/ritwickdey.liveserver-5.7.9/node_modules/live-server/index.js
06:06:53.456 info host patching /Users/tarasis/.vscode/extensions/ms-vscode.live-server-0.4.15/out/extension.js
06:06:53.456 info host patching /users/tarasis/programming/websites/tarasis.net/node_modules/vite/bin/vite.js
06:06:53.456 info host patching /users/tarasis/programming/websites/tarasis.net/node_modules/astro/astro.js
06:06:53.511 info host Host's startup and patch time: 390 ms06:06:53.511 info host completed tools discovery and integration06:06:53.648 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 50455 }06:06:54.365 info buildHook-9348 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless, astro, live-server-extension, live-preview-extension, node06:06:54.365 info buildHook-9348 running tools: astro06:06:54.367 info host client connected: buildHook { address: '127.0.0.1', family: 'IPv4', port: 50455 }06:06:54.380 info buildHook-9348 file processed (stat): 0 log points, error handler: true, network logging handler: true06:06:54.387 info buildHook-9348 file processed (stat): 0 log points, error handler: false, network logging handler: false06:06:54.390 info buildHook-9348 file processed (stat): 8 log points, error handler: false, network logging handler: false06:06:54.390 info buildHook-9348 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless, astro, live-server-extension, live-preview-extension, node06:06:54.390 info buildHook-9348 running tools: astro06:07:20.003 info buildHook-9348 file processed (stat): 0 log points, error handler: true, network logging handler: true06:07:53.346 info host removing cache folder: fa4e04642b082df6baf412c58758e84a06:08:10.653 info buildHook-9348 file processed (promise): 0 log points, error handler: false, network logging handler: false06:08:21.347 info buildHook-9348 file processed (promise): 0 log points, error handler: false, network logging handler: false06:09:22.725 info buildHook-9348 file processed (stat): 8 log points, error handler: false, network logging handler: false06:09:52.474 info buildHook-9348 file processed (stat): 8 log points, error handler: false, network logging handler: false06:15:52.268 info buildHook-9348 file processed (stat): 8 log points, error handler: false, network logging handler: false06:15:52.896 info buildHook-9348 file processed (stat): 8 log points, error handler: false, network logging handler: false06:15:56.917 info buildHook-9348 file processed (stat): 8 log points, error handler: false, network logging handler: false06:16:27.879 info buildHook-9348 file processed (stat): 8 log points, error handler: false, network logging handler: false06:16:31.231 info buildHook-9348 file processed (stat): 8 log points, error handler: false, network logging handler: false06:16:40.067 info buildHook-9348 file processed (promise): 10 log points, error handler: false, network logging handler: false(END)
The text was updated successfully, but these errors were encountered:
What happened?
I was expecting that the inline logging, or logging to the CN view what capture the values / logs I was outputing with
console.log
in.astro
files to work, but instead nothing was captured.However when I did some logging in a plain JS file it was captured as expected.
First is how it appears in .astro file
![Image](https://private-user-images.githubusercontent.com/3006/408985778-6c48382a-754b-41e2-95ed-7c5a51abf17c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDUyMTYsIm5iZiI6MTczOTI0NDkxNiwicGF0aCI6Ii8zMDA2LzQwODk4NTc3OC02YzQ4MzgyYS03NTRiLTQxZTItOTVlZC03YzVhNTFhYmYxN2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDMzNTE2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGE3ZTM4MjViZWZlZDM2YTA3MzQzN2FhYTdjOWU1MTA2ZGRhOTcwYTk1NzFlNTViMGQ5YTc4NDljN2MyNDkyOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.GUOTOWWFLmSqsJ76Wv--x5LK9UZc5gkZ-uwmA6G5w_I)
Second in the JS file
![Image](https://private-user-images.githubusercontent.com/3006/408985780-34b08ed7-a81a-46c5-904c-cc75824a2457.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDUyMTYsIm5iZiI6MTczOTI0NDkxNiwicGF0aCI6Ii8zMDA2LzQwODk4NTc4MC0zNGIwOGVkNy1hODFhLTQ2YzUtOTA0Yy1jYzc1ODI0YTI0NTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDMzNTE2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTYwNjQzNjAzOTM3MzJhNGE4YTM2MWI2ZjM4NjcyMmJkNTUyNjAwMTg1ODJmNDU4MDRkZGNhMDBmZTQwNTljYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.9VH0ZCRcDOQZVZIRgKTjtCwhgvSIPwBfdyWEt-15a50)
Node ver 23.7.0
npm ver 10.9.2
Astro ver 5.2.3
Version
1.0.386 (PRO)
CLI command to start your dev tool
Steps to reproduce (or sample repo)
Repeat with the same in a normal JS file (I used rss.xml.js for each)
Again set breakpoints on the code and this time
Log output
The text was updated successfully, but these errors were encountered: