I'm seeking some advice on how to debug a Laravel function mapped in a JavaScript function that is being called in an HTML page.
$('#upload-avatar').fileapi({
url: '{{ route("user.avatar") }}',
accept: 'image/*',
data: { _token: "{{ csrf_token() }}" },
imageSize: { minWidth: 100, minHeight: 100 },
elements: {
active: { show: '.js-upload', hide: '.js-browse' },
preview: {
el: '.js-preview',
width: 96,
height: 96
},
progress: '.js-progress'
},
As you can see, the user.avatar Laravel function is triggered when attempting to upload an image. My issue is that IntelliJ IDEA doesn't respond when I click the Upload button.
I have "Start listening for PHP debug connections" turned ON. Do I need any additional configurations to debug JavaScript code embedded in an HTML page?