Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Feature Requests /
avatar image

Alaa Adel suggested an idea · Mar 17 at 01:33 PM · sdks

Control Debug messages in the JS SDK

I am using the Javascript SDK.

Sometimes I get error messages in the browser console. They contain nice details about the error. But for the users, I don't want them to read this data; specially that it might contain credentials and so on..

For example, in PlayFabClientAPI.js, line 131 in Chrome, there is this line:

reject(xhrResult);

Which shows the error in console. The error allows me to read the request data and see the player's email and password..etc.

Please provide a way to enable/disable these messages by the developer. Like a variable for example, something like:

{
// ... SDK code
if (isDebugMode===true) {	// The developer can change it to 'false' at release
	// Print-to-Console code
}
}

Thank you.

thub.nodes.view.add-new-comment
Alaa Adel

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

No comments

· Add your reply

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Your Opinion Counts

    We would love to know what you need. Submit your ideas and upvote others to help us prioritize.

    Sign in to post a new idea

    Follow

    Follow This Idea

    2 People are following this .

    avatar image avatar image

    Related Ideas

    Set multiple TitleData keys in single API call.

    Store and catalog management from Server SDK

    Secure socket to custom game servers

    UnitySDK: override ToString() in DataModels

    React Native SDK

    Add IsConsumable field to PlayFab's API for catalog items

    Construct2 Plugin

    REST API feature to be provided

    Unity PlayFab SDK and Game SDK install fix

    Defold SDK API Support

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges