Debugging JavaScript with Chrome DevTools Breakpoints

To debug JavaScript in Google Chrome use Developer Tools
To set a breakpoint, simply click on the grey margin where you see line numbers in the Sources tab
Stepping through the code-

Step Over – F10
Step into – F11
Step out Shift+F11
Continue F8

You can also use the following buttons in the Developer tools to step through the code-

To set a conditional breakpoint, right click on the grey margin and select “add conditional breakpoint”

The Call Stack panel displays the complete excetion path and in this path where you want to breakpoint add select any line where auto color blue background that means javascript excution pouse at breakpoint.

If you want to find a individual id then press

Ctrl+shift+I

and go to console tab and select

Ctrl+shift+F

and paste any id and press enter

Tagged : / / / /

PHP: maximum execution time when importing .SQL data file (Maximum execution time of 300 seconds exceeded)

When you install first-time XAMPP and import a large file in the database the that if Maximum execution time of 300 seconds exceeded will be showing this type of error in your database:

So, There’s a configuration variable within the phpMyAdmin directory that you can find in below path-

“C:\xampp\phpMyAdmin\libraries\config.default.php”

after find this below line-

“$cfg[‘ExecTimeLimit’] = 300;”

and replace below line-

“$cfg[‘ExecTimeLimit’] = 0;”

that you can set to whatever maximum execution time you need. After that your problem will be solved.

Tagged : / / / /

How to solve throwing npm error “npm ERR! code ELIFECYCLE” “npm ERR! errno 2” “npm ERR! @ dev: `npm run development`”

When you using “laravel 5.5” and whenever run command “npm install” then sometime it comes this type error.

Then run below commands –

Step 1-

npm install –save-dev cross-env

After that Your problem will be solve.

Tagged : / / /

ERROR Failed to compile with 8 errors (Running ❯ npm run dev Failed to compile with 1 errors Unexpected token)

When you using “laravel 5.5” and changes in “resourse/asset” after that run commands “npm run dev” then showing this error.

Then run below commands –

Step-1

npm rebuild node-sass

Step -2

npm run dev

After that you project will be run.

Tagged : / / /

@php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 255

When you using “laravel 5.5” downloaded project then showing this type of error, then first open terminal and got to project as below commands

step-1

$ cd project_name

step-2

$ composer update

Step-3

$ composer dump-autoload

After that your problem will be solve. If will not be solve then below commands

Step-4

$ composer require laravel/ui

After that run this commands. you project will be run successfully.

Step-5

$ php artisan serve

Tagged : / / /