Skip to content

Ecellors Blog

Exploring Power Platform and Beyond: Features, Experiences, Challenges, Solutions all in one place

Tag: D365 Plugin debugging in VS 2017

Cannot obtain value of the local variable or argument because it is not available at this instruction pointer, possibly because it has been optimized away in Visual studio 2017

Hi,

Recently we were debugging a D365 plugin in Visual studio 2017, able to hit the debugger but unable to get values to any of the variables. Getting the above error while debugging with the solution being in Release mode.

Capture.JPG

Changed from the release mode to debug mode, deployed the solution and then able to debug and get the values.

Please refer to below posts  for more information.

Cannot obtain value of local variable

Blog from Microsoft

Hope this helps someone…

Cheers,

PMDY

 

Share this:

  • Tweet
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Email a link to a friend (Opens in new window) Email
  • Share on Threads (Opens in new window) Threads
  • Print (Opens in new window) Print
  • Share on Telegram (Opens in new window) Telegram
  • Share on Tumblr
  • Share on Reddit (Opens in new window) Reddit
  • Share on Bluesky (Opens in new window) Bluesky

Like this:

Like Loading…
Unknown's avatarAuthor Pavan Mani Deep YPosted on December 25, 2018December 25, 2018Categories D365 Online, Plugin CustomizationTags Cannot obtain value of local variable in vs 2017, D365 Plugin debugging in VS 2017, Debug pluginsLeave a comment on Cannot obtain value of the local variable or argument because it is not available at this instruction pointer, possibly because it has been optimized away in Visual studio 2017
P
Pavan Mani Deep Yaragani
Power Platform & Dynamics CE Architect
■ MICROSOFT MVP PL-600 AB-100

🎙️ Ecellors Architect Series — Deep-dive episodes for Power Platform & Dynamics 365 CE Architects.

▶ Subscribe on YouTube
Ecellors
Power Platform · Machine Learning · Agentic AI

Level up your Power Platform career.

Join architects & consultants getting weekly insights on real-world CRM, Dataverse & AI agent patterns

+ Follow
New insights every week

🎁 30 MIN SESSION

Power Platform Career Guidance

Accelerate your Power Platform journey

📅 Book your Session

Powered by Topmate

Note: Sessions are for individual Power Platform professionals only — not for active client engagements.

✉️ GET IN TOUCH

Get In Touch

Questions, collaborations, or speaking invitations — feel free to reach out.

📧 pavanmanideep@ecellorscrm.com

Visitors

213170
Users Today : 82
Users Yesterday : 98
Users Last 7 days : 632
Users Last 30 days : 2600
Users This Month : 1115
Users This Year : 11080
Total Users : 213170
Views Today : 154
Views Yesterday : 292
Views Last 7 days : 1054
Views Last 30 days : 3654
Views This Month : 1652
Views This Year : 15542
Total views : 217631
Who's Online : 2
Your IP Address : 216.73.216.140
Server Time : September 14, 2026 4:57 pm
Powered By WPS Visitor Counter

⚖️ DISCLAIMER

All content on this blog represents my personal views and is produced in my personal capacity. Nothing here reflects the views or opinions of Microsoft, my employer, or any client I work with. Code samples and architectural guidance are shared for educational purposes only.

Ecellors Blog Powered by WordPress.com.
Loading Comments...
%d