Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9139625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:24:43+00:00 2026-06-17T09:24:43+00:00

Inside the <vector> header, there is code like this: _DEBUG_ERROR(vector iterator not dereferencable); _SCL_SECURE_OUT_OF_RANGE;

  • 0

Inside the <vector> header, there is code like this:

_DEBUG_ERROR("vector iterator not dereferencable");
_SCL_SECURE_OUT_OF_RANGE;

Which halts the program with a message and gives the programmer a chance to debug the code.

For a little toy project, I want to use _DEBUG_ERROR myself. It is defined in <xutility>.

However, when I include <xutility> and try to use _DEBUG_ERROR, I get the following error:

error C3861: "_Debug_message": identifier not found.

But _Debug_message is defined inside <xutility>, in line 28! Why does the compiler complain?

Also, is there another (maybe even somewhat portable?) way to halt the program for debugging?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:24:44+00:00Added an answer on June 17, 2026 at 9:24 am

    Not 100% certain but I’m fairly sure it’s actually std::_Debug_message. And PlasmaHH is right: assert() is the normal solution. You can write assert(!"message") to get a custom message. (Note the !)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to print every element inside a vector like this: vector<users>::iterator i; for(i
Inside my .aspx I have some JSON code that looks like this: function someFunctionName()
I have got a map defined inside a class in header file like this:
I have a member in my class defined like this inside my header file:
My code looks like this: a = IO.readlines(input.txt).map { |line| Vector.[](line.split) } Now I
I have a vector of Foo*. What I put inside is always Foo*, there
I have vector like this: x <- c(20(0.23), 15(0.2), 16(0.09)) and I don't want
I have a vector like this: std::vector<std::vector<char> > _lines; I would like to iterate
I have seen the code vector<char> v(10); vector<char>::iterator p; here what is the need
I want to erase some iterator from a vector, so this is what I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.