This button does not seem to work. I added the 1st entry just to see if it ran at all. I does not enter any thing in the text box
Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by
Taifun.
1st time using the AI companion. How do I get it in debug?
I keep ngetting this message

See here Connect your Phone or Tablet over WiFi
Taifun
To get help with the App Inventor companion, ensure your devices are on the same Wi-Fi network, the companion app is updated, and your computer's firewall isn't blocking the connection. If Wi-Fi fails, use a USB cable or the Android emulator, and if problems persist, check for issues like a large project size, which may require compressing files.
Common troubleshooting steps
- Wi-Fi Connection:
- Ensure both your computer and your phone/tablet are connected to the same Wi-Fi network.
- Check that your device shows an IP address in the companion app's screen.
- Turn off your phone's mobile data to prevent interference.
- Some school or work networks may block connections; in this case, a USB cable or the emulator is the best option.
- App and Software Updates:
- Make sure you have the latest version of the "MIT App Inventor Companion" app from the Google Play Store or Apple App Store.
- Ensure you have the latest version of the App Inventor setup software on your computer, especially if using the emulator.
- Firewall and Antivirus:
- A firewall or antivirus program on your computer might be blocking the connection. You may need to configure it to allow
aiStarteror the emulator program.
- A firewall or antivirus program on your computer might be blocking the connection. You may need to configure it to allow
- Connection Methods:
- Wi-Fi: In the "Connect" menu in App Inventor, select "AI Companion," and scan the QR code or enter the six-digit code into the app on your device.
- USB: Connect your device via a USB cable. Go to the "Connect" menu and choose "USB". This option may require additional setup, like installing device drivers.
- Emulator: If you can't connect a physical device, use the "Emulator" option from the "Connect" menu. You may need to manually launch
aiStarteron your computer first.
- Other potential fixes:
- If your project has many files or large images, compress them to reduce the overall size, which can help with connection issues.
- Delete the
.appinventorfolder from your home directory and try connecting again. - Restart the companion app or the AI Inventor's emulator and try reconnecting a few times.
You may need to check your workflow. Is there anything in your Validate procedure required or set for your following if statement? Validate may not be completing before the if statement is processed.
Valid = 1 means OK ?
Valid = 0 means Error ?
It seems not being the correct error message in case of SMS length < 1 (I guess).

Is everything laying in screen1, or do you use multiple screens ?
Did you miss the operator "length" here ? Or are you checking for numbers (in text fields) ?
What about posting your .aia ?
I turned off both firewall and antivirus but still wont connect
I tried this but the textbox "RunInd" does not update. The "Run" button does go gray (disabled) and "Stop" and "Reset" become enabled.
(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

It seems you've made a mistake here.
Make the variable take its value from the text box, not the other way around.
where are you referring to?
To the first post. I apologize. I didn't notice that someone had replied to you.

Here you need to reverse the process
I put the set global "Valid" 1st (here it would normally call a validate procedure). Still does not work.
We are not getting anywhere with these partial screenshots of your blocks.
Upload your aia project so that someone can take a proper look.
You need to send me an AIA so we can help you better. I don't know how the app works.





