web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Cannot see JS file whe...
Power Pages
Answered

Cannot see JS file when debug power portal page

(0) ShareShare
ReportReport
Posted on by 53

Create a page in power portal site -> Edit Code in Visual Studio Code -> Add some custom JS in js file -> Preview the page and F12 to debug it. Problem: Cannot see the JS file to debug. Really appreaciate for any suggestion!

fishscience_2_0-1691763798009.png

 

Categories:
I have the same question (0)
  • Lucas001 Profile Picture
    2,561 Super User 2026 Season 1 on at

    Hi @fishscience_2 ,

     

    is the debugger activated once your page is loading?

    If it is urgent use the portal management app go to your html and write the <script></script> there as it is loaded with the HTML it should work.

     

    Other than that try updating your JS file inside your Portal Management App save and sync. Maybe it's problem from the integrated Vs Code.



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • fishscience_2 Profile Picture
    53 on at

    Thanks! it is solved. Add codes as external JS codes. Then JS codes can be debug.

  • Verified answer
    Lucas001 Profile Picture
    2,561 Super User 2026 Season 1 on at

    Hi @fishscience_2.

     

    sounds great. Could you close the thread and mark a post as solution?

     



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 49

#2
11manish Profile Picture

11manish 33

#3
Haque Profile Picture

Haque 28

Last 30 days Overall leaderboard