How to find the bug line/file in Angular 2 [closed] - angularjs

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am following the hero tutorial on Angular's page. I have come to Routing step so far. Now my script does not work. I see only "Loading..." text as default template. There is an error in some file. But I cannot see where the script stops flowing.
I need to be warned/informed that the computer should tell me "there is an error in file 'somefile.js' at line 99".
I do not know how to find the line to be corrected. And I want to see where the app halts. Is there a way to find it on console or firebug or something else?
This is important when I start to develop my own scripts.

Can you have the web dev tools stop on exception?
with Chrome
open developer tools
open sources tab
click stop icon with || inside it (top right of dev tools above call stack)
This will cause your app to pause on all exceptions.

Related

Should I remove errors displaying from console? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last month.
Improve this question
I am learning error handling in a social media app using the MERN stack. I am able to easily send any errors that occur from the backend and display them in the frontend using try-catch. However, the browser console is also displaying the errors. Is it okay to show these errors in the console or is it better to suppress them?
I am having difficulty understanding this concept. I think it would be frustrating for users to see errors in the console.
Yes it's ok to console log the errors in front end console unless it doesn't show any important data
-You can open any social media app like (discord) for example it shows all the errors that happen while making request between the front end and the back end
*Side note: For any input or form or any entry data it's not recommended to console log these data Or you can just delete all the console logs.

How to add an IDE Platform to your reactjs Web App [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
Hello I have been searching on the internet on how one can add an IDE/Text Editior on a reactJS project that can run Java and Python if possible even more languages... So I was looking to having something like Khan Academy or DataCamp, so I want to be able to also monitor that inputs and outputs so I can make it interactive and when the answer is wrong and then alert wrong answer something like that...
How can I go about this or where can I read about making such?
This is not a front-end development specific question.
For such an react-application to work, first you should create a backend which will run your python/java script, then expose a api to link with react application. Which will take the program as request data and return program ouput as response.

how to test responsive design in all screen resolutions? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I need to test a responsive website based on all screen resolution, as you know for example we can drag FireFox or Chrome browser size by mouse and resize page but I believe this is not correct way.
but please share your idea about it
.
There are also some websites that they provide same facility by checking website in all devices screen, but it's not trustworthy.
I need to know what is the best way and routine way to check
responsive website for all screen devices?
In the developer tool of mozilla firefox, in the top right portion click on the square icon to enable mobile mode.
read for more here, https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode
I've recently tried using browsersync and it works quite well.
BrowserSync essentially allows you to test your site across a network of devices, and what you do on one device is immediately visible on the others. Your scroll, click, refresh and form actions are mirrored between browsers while you test.
Here's the link: https://www.browsersync.io/

iTunesconnect, App Review Contact Information [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm having trouble (again) with itunes connect.
I want to add a new version for my app, but I have the message
The following error(s) occurred:
You must provide all required contact information. To edit your contact details, click Edit in the App Review section.
But, I can't find where should I add the information! where is it?
Did you scroll down?
The information is the bottom of the page where you see the error on top (see screenshot).
Press the edit button next to App Review Information to edit it.
You can find more information on this topic here:
Apple's Guide For Editing and Updating App Information
it contains a subsection for the:
App Review Information

Existing CakePHP projects force download of webroot/index.php source code [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm working on windows with Apache 2.2 and PHP 5.2.17. I've just done some fiddling to install mcrypt and since then when I try to access some (but not all) of my cakephp projects in my browser (chrome), the source code for webroot/index.php is downloaded to a file called download. If I unpack a fresh cakephp and access that it works fine.
I also get the same issue with Magento by the way.
Any solutions? Thanks.
For anyone having the same issue, it turned out to be only a problem for google chrome. I emptied the cache and all is back to normal. Thanks to Oldskool for making me aware that it was possibly a browser specific issue.

Resources