Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Debug mode - Filter type of logs printed to the console

Avatar

Avatar
Shape 100
Community Advisor
Andrew_Wathen_
Community Advisor

Likes

592 likes

Total Posts

328 posts

Correct reply

16 solutions
Top badges earned
Shape 100
Bedrock
Coach
Seeker
Contributor 2
View profile

Avatar
Shape 100
Community Advisor
Andrew_Wathen_
Community Advisor

Likes

592 likes

Total Posts

328 posts

Correct reply

16 solutions
Top badges earned
Shape 100
Bedrock
Coach
Seeker
Contributor 2
View profile
Andrew_Wathen_
Community Advisor

21-05-2021

Description -

Currently when debugging is enabled all events are logged to the console which makes it very hard to see what is going on.   It would be great if there was a way to select which types of events were written to the console.  Often I just want to see the custom logs generated where I've used the _satellite.logger function in custom code. 

Why is this feature important to you -

It would make debugging easier.   At the moment I find myself often resorting to using console.log because it is easier to see what is happening but this has it's own drawbacks


How would you like the feature to work -

Maybe the _satellite.setDebug() function could be altered to take an additional optional parameter listing the categories of log that you want to write to the console?

Current Behaviour -

Everything gets written to the console

2 Comments

Avatar

Avatar
Give Back 200
Community Advisor
Stewart_Schilling
Community Advisor

Likes

348 likes

Total Posts

279 posts

Correct reply

85 solutions
Top badges earned
Give Back 200
Ignite 5
Ignite 3
Give Back 100
Give Back 50
View profile

Avatar
Give Back 200
Community Advisor
Stewart_Schilling
Community Advisor

Likes

348 likes

Total Posts

279 posts

Correct reply

85 solutions
Top badges earned
Give Back 200
Ignite 5
Ignite 3
Give Back 100
Give Back 50
View profile
Stewart_Schilling
Community Advisor

21-05-2021

Are you not able to accomplish what you need with console filtering?  

https://developer.chrome.com/docs/devtools/console/reference/#filter

Avatar

Avatar
Shape 100
Community Advisor
Andrew_Wathen_
Community Advisor

Likes

592 likes

Total Posts

328 posts

Correct reply

16 solutions
Top badges earned
Shape 100
Bedrock
Coach
Seeker
Contributor 2
View profile

Avatar
Shape 100
Community Advisor
Andrew_Wathen_
Community Advisor

Likes

592 likes

Total Posts

328 posts

Correct reply

16 solutions
Top badges earned
Shape 100
Bedrock
Coach
Seeker
Contributor 2
View profile
Andrew_Wathen_
Community Advisor

24-05-2021

@Stewart_Schilling It's a fair point, and one I considered 🙂

 

But I don't think I can get the configuration I wanted this way.  I want everything to appear in the console that would normally appear, plus just the custom logs I've set in code using the _satellite.logger function (i.e. none of the other stuff that launch outputs by default when you enable debugging)  - Launch seems to split out so much stuff when we have debugging is enabled that it just swamps the console.