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
Advertisements
🎙️
Ecellors Architect Series
Power Platform · Dynamics 365 CE

Deep-dive episodes for architects.

Real-world solution design, Dataverse & AI agent patterns 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
🎁
Power Platform Career Guidance
Connect with me

Grow your Power Platform journey.

From developer to architect, 1:1 community mentoring.

🎯 Book Career Session
✉️
Get In Touch
Questions · Collaborations · Speaking

Feel free to reach out.

Questions, collaborations, or speaking invitations are always welcome.

✉️ Email Me

Visitors

216771
Users Today : 51
Users Yesterday : 135
Users Last 7 days : 791
Users Last 30 days : 2394
Users This Month : 2394
Users This Year : 14681
Total Users : 216771
Views Today : 126
Views Yesterday : 154
Views Last 7 days : 1047
Views Last 30 days : 3542
Views This Month : 3542
Views This Year : 20814
Total views : 222903
Who's Online : 1
Your IP Address : 216.73.217.120
Server Time : October 31, 2026 9:14 pm
Powered By WPS Visitor Counter
⚖️
Disclaimer
Personal views · Educational use

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